package com.example.nongye.http.model;


import com.example.nongye.http.api.BillListApi;

import java.io.Serializable;
import java.util.List;

public class HttpListData implements Serializable {
    private int status;

    private String describe;

    private long time;

    private String signature;
    private String timeString;

    private int pageTotal;

    private int currentPage;

    private List<BillListApi.Response> data;

    public List<BillListApi.Response> getData() {
        return data;
    }

    public int getStatus() {
        return status;
    }

    public String getDescribe() {
        return describe;
    }

    public long getTime() {
        return time;
    }

    public String getSignature() {
        return signature;
    }

    public String getTimeString() {
        return timeString;
    }

    public int getPageTotal() {
        return pageTotal;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public void setTimeString(String timeString) {
        this.timeString = timeString;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public void setData(List<BillListApi.Response> data) {
        this.data = data;
    }

    /**
     * 是否请求成功
     */
    public boolean isRequestSucceed() {
        return status == 0;
    }


}